import bus from '@/bus'
import { renderButton } from '@/util'
let data = {
  status: 'pass',
  totalItem: 1,
  pageSize: window.$pageSize,
  currentPage: 1,
  form: {
    distributorName: '',
    contactName: '',
    contactMobile: ''
  },
  columns: [{
    title: 'PDA设备IMEI/MEID码',
    key: 'equipmentImei',
    align: 'left',
    minWidth: 200
  }, {
    title: '绑定时间',
    key: 'createDate',
    align: 'left',
    minWidth: 200
  }, {
    title: '经销商编号',
    key: 'distributorSn',
    align: 'left',
    minWidth: 200
  }, {
    title: '经销商名',
    key: 'distributorName',
    align: 'left',
    minWidth: 250
  }, {
    title: '联系人',
    key: 'contactName',
    align: 'left',
    minWidth: 200
  }, {
    title: '联系手机号',
    key: 'contactMobile',
    align: 'left',
    minWidth: 200
  }, {
    title: '操作',
    align: 'right',
    minWidth: 120,
    render: (h, params) => {
      let unboundBtn = renderButton(h, { text: '解绑', type: 'primary' }, ()=>{ bus.$emit('onUnbound', { item: params.row })})
      return h('div', [unboundBtn])
    }
  }],
  data: []
}
export default data